package git.soulbgm.pojo;

import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 数据包接收序列
 *
 * @author SoulBGM
 * @date 2021-11-17
 */
public class PacketReceiveSequence {

    /**
     * 包ID
     */
    private Long packetId;

    /**
     * 段编号
     */
    private Integer dataSegmentNumbering;

    /**
     * 接收来源编号
     *
     * 信息处理分系统 10
     * 信息服务分系统 20
     * 用户管理分系统 21
     * 移动服务分系统 30
     * 运营服务分系统 40
     * 大屏系统      21
     * 监测终端系统   2
     * 主控站        1
     * 集团用户      800-20799
     */
    private Integer sourceCode;

    /**
     * 信源机编号
     * 当来源为主控站时为 zkzType
     * 当来源为中兵内(信处,信服,用户管理,运营,大屏,监测终端)时为 信源机编号
     * 当来源为集团用户时为 0
     */
    private Integer infoSourceComputerCode;

    /**
     * 包序号
     */
    private Long packetNumber;

    /**
     * 接收包携带的日期
     */
    private Long packetDate;

    /**
     * 数据类型
     */
    @TableField(exist = false)
    private Integer dataType;

    /**
     * 数据段长度
     */
    @TableField(exist = false)
    private Integer dataSegmentLength;

    public PacketReceiveSequence() {
    }

    public PacketReceiveSequence(Long packetId, Integer dataSegmentNumbering, Integer sourceCode, Integer infoSourceComputerCode, Long packetNumber, Long packetDate) {
        this.packetId = packetId;
        this.dataSegmentNumbering = dataSegmentNumbering;
        this.sourceCode = sourceCode;
        this.infoSourceComputerCode = infoSourceComputerCode;
        this.packetNumber = packetNumber;
        this.packetDate = packetDate;
    }

    public Long getPacketId() {
        return packetId;
    }

    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    public Integer getDataSegmentNumbering() {
        return dataSegmentNumbering;
    }

    public void setDataSegmentNumbering(Integer dataSegmentNumbering) {
        this.dataSegmentNumbering = dataSegmentNumbering;
    }

    public Integer getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(Integer sourceCode) {
        this.sourceCode = sourceCode;
    }

    public Integer getInfoSourceComputerCode() {
        return infoSourceComputerCode;
    }

    public void setInfoSourceComputerCode(Integer infoSourceComputerCode) {
        this.infoSourceComputerCode = infoSourceComputerCode;
    }

    public Long getPacketNumber() {
        return packetNumber;
    }

    public void setPacketNumber(Long packetNumber) {
        this.packetNumber = packetNumber;
    }

    public Long getPacketDate() {
        return packetDate;
    }

    public void setPacketDate(Long packetDate) {
        this.packetDate = packetDate;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public Integer getDataSegmentLength() {
        return dataSegmentLength;
    }

    public void setDataSegmentLength(Integer dataSegmentLength) {
        this.dataSegmentLength = dataSegmentLength;
    }
}
